package com.maxuxu.scihome.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import javax.validation.constraints.Size;
import java.util.Date;

/**
 * @className: User
 * @author: Maxuxu
 * @date: 2022/6/29 10:31
 * @description: 登陆用户实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("scihome.user_inf")
@Component
public class User {
    @TableId(type = IdType.ASSIGN_ID,value = "id")
    private long userid;
    @Size(min = 6,max = 20)
    private String loginname;
    private String password;
    private Integer status;
    private Date createDate;
    private String username;
    private String email;
    private String perms;
}

